<?php
//Register advertise position
add_action( 'init', 'register_adv_position_taxonomies', 0 );
function register_adv_position_taxonomies() {
	$labels = array(
		'name'              => _x( 'Advertise Categories', 'taxonomy general name' ),
		'singular_name'     => _x( 'Advertise Categories', 'taxonomy singular name' ),
		'search_items'      => __( 'Search Advertise Categories' ),
		'all_items'         => __( 'All Advertise Categories' ),
		'parent_item'       => __( 'Parent Advertise Categories' ),
		'parent_item_colon' => __( 'Parent Advertise Categories:' ),
		'edit_item'         => __( 'Edit Advertise Categories' ),
		'update_item'       => __( 'Update Advertise Categories' ),
		'add_new_item'      => __( 'Add New Advertise Categories' ),
		'new_item_name'     => __( 'New Genre Advertise Categories' ),
		'menu_name'         => __( 'Advertise Categories' ),
	);

	$args = array(
		'hierarchical'      => true,
		'labels'            => $labels,
		'show_ui'           => true,
		'show_admin_column' => true,
		'show_in_nav_menus' => true,
		'query_var'         => true,
		'rewrite'           => true,
	);

	register_taxonomy( 'adv_categories', array('advertise') , $args );
}
?>